package Classes;

import java.util.Collection;

/**
 * Write a description of class Produit here.
 * 
 * @author (your name) 
 * @version (a version number or a date)
 */
public class Produit
{
    // instance variables - replace the example below with your own
    private String nom;
    private int prix;
    
    private Collection<Vendeur> listVendeur;
    
    public String getNom()
    { return this.nom; }
    
    public int getPrix()
    { return this.prix; }
    
    public void setNom(String s)
    { this.nom = s; }
    
    public void setPrix(int i)
    { this.prix = i; }

    /**
     * Constructor for objects of class Produit
     */
    public Produit()
    {
        // initialise instance variables
        nom = "";
        prix = 0;
    }

    /**
     * An example of a method - replace this comment with your own
     * 
     * @param  y   a sample parameter for a method
     * @return     the sum of x and y 
     */
    public int augmenterPrix(int y)
    {
        // put your code here
        prix = prix + y;
        return prix;
    }
}
